//
//  Pliers.cpp
//  dentist
//
//  Created by Denveryee on 13-12-4.
//
//

#include "Pliers.h"
#include "HelloWorldScene.h"
#include "BaseBadPoint.h"
#include "Tool.h"

Pliers::Pliers(void)
{
}

Pliers::~Pliers(void)
{
	pTool->autorelease();
}

Pliers::Pliers(CCLayer* helloWorld, std::vector<BaseTooth*> pTwTooth){
    pTool = new Tool(pTwTooth);
    pTool->touchEndedX = 271;
    pTool->touchEndedY = 66;
    
    pTool->relativeX = 0;
    pTool->relativeY = 0;
    
    pTool->initWithTexture(CCTextureCache::sharedTextureCache()->addImage("yy_tool_2.png"));
    pTool->setPosition(ccp(194,194));
    pTool->setZOrder(5);
    helloWorld->addChild(pTool);
    pTool->fixKind = BaseBadPoint::BLACK;
}